package com.abocode.aichat.test.receive;

import com.abocode.aichat.client.ModuleServiceSPIReceiver;
import com.abocode.aichat.data.ModuleServiceType;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class AuthReceiver implements ModuleServiceSPIReceiver {

    @Override
    public boolean availableReceiver(String receiver) {
        return receiver.equalsIgnoreCase(ModuleServiceType.auth.getName());
    }
    @Override
    public void respond(Object data) {
        log.info("resp msg:" + JSON.toJSONString(data));
    }
}
